package com.cloudm.technician.ui.modules.personal.personal_center

import com.cloudm.technician.data.model.UploadTokenInfo
import com.cloudm.technician.data.model.User
import com.cloudm.technician.ui.base.BasePresenter
import com.cloudm.technician.ui.base.BaseView
import java.io.File

/**
 * 作者: wesley
 * 时间: 2017/12/26
 * 描述: 协议接口
 */
interface PersonalCenterContract {


    interface View : BaseView {

        fun userInfoLoadSuccess(user: User?)

        fun exitLogin()

        fun showErrorMsg(errorMsg: String)

        fun updateUiByFlag(flag: Int)

        fun showTokenInfoEmpMsg()

        fun loadTokenInfoSuccess(info: UploadTokenInfo, file: File)

        fun picUploadFailure()

        fun picUploadSuccess(url: String)

        fun modifyLogoSuccess(url: String)
    }

    interface Presenter : BasePresenter {

        fun getUserInfo()

        fun exitLogin()

        fun getUploadToken(file: File)

        fun uploadFile(info: UploadTokenInfo, file: File)

        fun uploadLogo(uploadLogo: String)
    }
}